package com.demo.steammanagement.common;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.Map;

@Component
public class PathBean {
    private Map<String,String> pathMap ;

    @PostConstruct
    public void init() {
        // 初始化 Map 并设置预设值
        pathMap = new HashMap<>();
        pathMap.put(Constants.PAY_ORDER.getConstant(), Constants.PAY_ORDER.getValue());
    }

    public String getPath(String key) {
        return pathMap.get(key);
    }
}
